package org.example.springaop.proxy;

public class Main {
    public static void main(String[] args) {
        HouseSubject houseSubject = new RealHouseSubject();
        // 创建代理类
        HouseProxy houseProxy = new HouseProxy(houseSubject);
        // 通过代理类访问目标方法
        houseProxy.rentHose();
        houseProxy.saleHouse();
    }
}
